package day03;

public class OperDemo5 {
    public static void main(String[] args) {
        int age = 25;
        System.out.println("age=");
        System.out.println(age);
        System.out.println("age=" + age);
        System.out.println("我今年" + age + "岁了");
        char gender = '男';
        String name = "CZD";
        System.out.println("大家好，我叫" + name + "，性别：" + gender + "，今年" + age + "岁了。");
        //任何类型只要与字符串连接，结果都是字符串

        System.out.println(10 + 70 + "" + 80);
        System.out.println("" + 10 + 70 + 80);
        System.out.println(10 + 70 + 80 + "");

    }
}
